package com.zxs.domain.convert;

import com.zxs.domain.entity.bo.SubjectCategoryBO;
import com.zxs.domain.entity.dto.SubjectCategoryDTO;
import com.zxs.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author zxs
 * @date 2025/11/4 下午9:40
 */
@Mapper
public interface SubjectCategoryConvert {

    SubjectCategoryConvert INSTANCE = Mappers.getMapper(SubjectCategoryConvert.class);

    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);

    List<SubjectCategoryDTO> convertCategoryListToCategoryDTO(List<SubjectCategory> categoryList);

}
